//
//  JSMDreamCityModel.m
//  TakeYouTourTogether
//
//  Created by king on 15/11/26.
//  Copyright © 2015年 king. All rights reserved.
//

#import "JSMDreamCityModel.h"

@implementation JSMDreamCityModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        self.vid = value;
    }
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.discountDesc forKey:@"discountDesc"];
    [aCoder encodeObject:self.agencyId forKey:@"agencyId"];
    [aCoder encodeObject:self.remark forKey:@"remark"];
    [aCoder encodeObject:self.lineHotel forKey:@"lineHotel"];
    [aCoder encodeObject:self.lineType forKey:@"lineType"];
    [aCoder encodeObject:self.imageUrl forKey:@"imageUrl"];
    [aCoder encodeObject:self.enName forKey:@"enName"];
    [aCoder encodeObject:self.clickNum forKey:@"clickNum"];
    [aCoder encodeObject:self.martPrice forKey:@"martPrice"];
    [aCoder encodeObject:self.vid forKey:@"vid"];
    [aCoder encodeObject:self.allowDeduct forKey:@"allowDeduct"];
    [aCoder encodeObject:self.travelTime forKey:@"travelTime"];
    [aCoder encodeObject:self.interestNum forKey:@"interestNum"];
    [aCoder encodeObject:self.deductDesc forKey:@"deductDesc"];
    [aCoder encodeObject:self.htmlUrl forKey:@"htmlUrl"];
    [aCoder encodeObject:self.updateTime forKey:@"updateTime"];
    [aCoder encodeObject:self.lineItem forKey:@"lineItem"];
    [aCoder encodeObject:self.lineDetailUrl forKey:@"lineDetailUrl"];
    [aCoder encodeObject:self.forwardNum forKey:@"forwardNum"];
    [aCoder encodeObject:self.lineSights forKey:@"lineSights"];
    [aCoder encodeObject:self.createTime forKey:@"createTime"];
    [aCoder encodeObject:self.travelTo forKey:@"travelTo"];
    [aCoder encodeObject:self.name forKey:@"name"];
    [aCoder encodeObject:self.startAddr forKey:@"startAddr"];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    if (self) {
        self.discountDesc = [aDecoder decodeObjectForKey:@"discountDesc"];
        self.agencyId = [aDecoder decodeObjectForKey:@"agencyId"];
        self.remark = [aDecoder decodeObjectForKey:@"remark"];
        self.lineHotel = [aDecoder decodeObjectForKey:@"lineHotel"];
        self.lineType = [aDecoder decodeObjectForKey:@"lineType"];
        self.imageUrl = [aDecoder decodeObjectForKey:@"imageUrl"];
        self.enName = [aDecoder decodeObjectForKey:@"enName"];
        self.clickNum = [aDecoder decodeObjectForKey:@"clickNum"];
        self.martPrice = [aDecoder decodeObjectForKey:@"martPrice"];
        self.vid = [aDecoder decodeObjectForKey:@"vid"];
        self.allowDeduct = [aDecoder decodeObjectForKey:@"allowDeduct"];
        self.travelTime = [aDecoder decodeObjectForKey:@"travelTime"];
        self.interestNum = [aDecoder decodeObjectForKey:@"interestNum"];
        self.deductDesc = [aDecoder decodeObjectForKey:@"deductDesc"];
        self.htmlUrl = [aDecoder decodeObjectForKey:@"htmlUrl"];
        self.updateTime = [aDecoder decodeObjectForKey:@"updateTime"];
        self.lineItem = [aDecoder decodeObjectForKey:@"lineItem"];
        self.lineDetailUrl = [aDecoder decodeObjectForKey:@"lineDetailUrl"];
        self.forwardNum = [aDecoder decodeObjectForKey:@"forwardNum"];
        self.lineSights = [aDecoder decodeObjectForKey:@"lineSights"];
        self.createTime = [aDecoder decodeObjectForKey:@"createTime"];
        self.travelTo = [aDecoder decodeObjectForKey:@"travelTo"];
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.startAddr = [aDecoder decodeObjectForKey:@"startAddr"];
    }
    return self;
}

@end
